﻿Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports Entities

' Here's a sample function supported on the host: GetBorrower()
' The clients sends in a GUID (BorrowerID) and gets back a Borrower Entity (MyBorrower)

' Tip: name your request: FunctionName + "I" (for Input) - in this case 'GetBorrowerI'
Public Class GetBorrowerRaisesExceptionI
  Inherits Albatross.Common.Messaging.DotNetRequest

  Private _BorrowerID As Guid
  Public Overridable Property BorrowerID() As Guid
    Get
      Return _BorrowerID
    End Get
    Set(ByVal value As Guid)
      _BorrowerID = value
    End Set
  End Property
End Class

' Tip: name your response: FunctionName + "O" (for Output) - in this case 'GetBorrowerO'
Public Class GetBorrowerRaisesExceptionO
  Inherits Albatross.Common.Messaging.Response

  Private _MyBorrower As Borrower
  Public Overridable Property MyBorrower() As Borrower
    Get
      Return _MyBorrower
    End Get
    Set(ByVal value As Borrower)
      _MyBorrower = value
    End Set
  End Property
End Class

Public Class GetBorrowerRaisesException2I
  Inherits Albatross.Common.Messaging.DotNetRequest

  Private _BorrowerID As Guid
  Public Overridable Property BorrowerID() As Guid
    Get
      Return _BorrowerID
    End Get
    Set(ByVal value As Guid)
      _BorrowerID = value
    End Set
  End Property
End Class

Public Class GetBorrowerRaisesException2O
  Inherits Albatross.Common.Messaging.Response

  Private sExceptionMessage As String
  Public Property ExceptionMessage() As String
    Get
      Return sExceptionMessage
    End Get
    Set(ByVal value As String)
      sExceptionMessage = value
    End Set
  End Property

  Private _MyBorrower As Borrower
  Public Overridable Property MyBorrower() As Borrower
    Get
      Return _MyBorrower
    End Get
    Set(ByVal value As Borrower)
      _MyBorrower = value
    End Set
  End Property
End Class
